<?php

include_once("functions/db_manipulate.php");
if (!init()) {
    redirect('?action=login');
}

$checkResultSet = checkTopicRead($_GET['tid']);

if (isset($_GET['page'])) {
    redirect("?action=topic&tid=" . $_GET['tid'] . "&page=" . $_GET['page']);
} else {
    redirect("?action=topic&tid=" . $_GET['tid']);
}



